package cn.toolck.my.spring.exception;

/**
 * @ClassName BeanCreationException
 * @Description 自定义异常
 * @Author Toolck Rin
 * @Date 2021/2/8 15:48
 * @Version 1.0
 **/
public class BeanCreationException extends RuntimeException {
    private String beanName;

    public BeanCreationException() {
        super();
    }

    public BeanCreationException(String beanName, String message) {
        super("创建" + beanName + "\t的时候发生错误：" + message);
    }

    public BeanCreationException(String message) {
        super(message);
    }

    public BeanCreationException(String message, Throwable cause) {
        super(message, cause);
    }

    public BeanCreationException(Throwable cause) {
        super(cause);
    }

    protected BeanCreationException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}